package com.app.service.impl;

import com.app.mapper.AwardMapper;
import com.app.mapper.PointOutMapper;
import com.app.model.AwardModel;
import com.app.model.PointOutModel;
import com.app.service.AwardService;
import com.app.service.PointOutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Primary
public class AwardtServiceImpl implements AwardService {
    @Autowired
    AwardMapper awardMapper;


    @Override
    public AwardModel getModel() {
        List<AwardModel> modelList =  awardMapper.selectList(null);
        return modelList.get(0);
    }

    @Override
    public void update(AwardModel model) {
        awardMapper.updateById(model);

    }
}
